package com.zr.datamodel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 配送范围价格
 * @author lym
 *
 */
@Entity
@Table(name="point_price")
public class PointPriceDM {

		//配送范围价格id
		private int id;
		
		//发货配送点名称
		private String startName;
		
		//收货配送点名称
		private String pointName;
		
		//首重价格
		private int firstPrice	;
		
		//次重价格
		private int nextPrice;	
		
		//首立方价格
		private int firstcPrice;	
		
		//次立方价格
		private int nextcPrice;

		@Id
		@GeneratedValue
		public int getId() {
			return id;
		}

		public void setId(int id) {
			this.id = id;
		}
		@Column(name="start_name")
		public String getStartName() {
			return startName;
		}

		public void setStartName(String startName) {
			this.startName = startName;
		}
		@Column(name="point_name")
		public String getPointName() {
			return pointName;
		}
		
		public void setPointName(String pointName) {
			this.pointName = pointName;
		}

		@Column(name="first_price")
		public int getFirstPrice() {
			return firstPrice;
		}

		public void setFirstPrice(int firstPrice) {
			this.firstPrice = firstPrice;
		}

		@Column(name="next_price")
		public int getNextPrice() {
			return nextPrice;
		}

		public void setNextPrice(int nextPrice) {
			this.nextPrice = nextPrice;
		}
		@Column(name="firstc_price")
		public int getFirstcPrice() {
			return firstcPrice;
		}

		public void setFirstcPrice(int firstcPrice) {
			this.firstcPrice = firstcPrice;
		}
		@Column(name="nextc_price")
		public int getNextcPrice() {
			return nextcPrice;
		}

		public void setNextcPrice(int nextcPrice) {
			this.nextcPrice = nextcPrice;
		}
		
		public PointPriceDM() {
			super();
		}

		public PointPriceDM(String startName, String pointName, int firstPrice, int nextPrice, int firstcPrice,
				int nextcPrice) {
			super();
			this.startName = startName;
			this.pointName = pointName;
			this.firstPrice = firstPrice;
			this.nextPrice = nextPrice;
			this.firstcPrice = firstcPrice;
			this.nextcPrice = nextcPrice;
		}


}
